package java.util.stream.asynchrionized;

/**
 * @author fangjiaxiaobai@gmail.com
 * @date 2020-04-30
 * @since 1.0.0
 */
public class Demo1 {

    public static void main(String[] args) {
        new SyncObject().syncTest();
    }
}

class SyncObject {
    public synchronized void syncTest(){
        System.out.println("sync method");
        System.out.println("sync method");
    }
}